home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Champak 52
/
Volume 52 - JOGO DISK .iso
/
Games
/
scoobycastillotenebroso.swf
/
scripts
/
DefineButton2_2309
/
BUTTONCONDACTION on(release, releaseOutside).as
< prev
Wrap
Text File
|
2007-10-01
|
990b
|
34 lines
on(release, releaseOutside){
if(this.hitTest(_root.environnement1.shutters_plank1.hit_plank) || this.hitTest(_root.environnement1.shutters_plank2.hit_plank))
{
this.swapDepths(_parent.swap);
if(this.hitTest(_root.environnement1.shutters_plank1.hit_plank))
{
_root.environnement1.shutters_plank1.gotoAndStop("closed_plank");
}
else if(this.hitTest(_root.environnement1.shutters_plank2.hit_plank))
{
_root.environnement1.shutters_plank2.gotoAndStop("closed_plank");
}
stopDrag();
set("_root.controler:drag_this",false);
this._visible = false;
}
else
{
this.swapDepths(_parent.swap);
stopDrag();
set("_root.controler:drag_this",false);
if(this._name == "wood1")
{
this._x = 72.85;
this._y = -5.35;
}
else if(this._name == "wood2")
{
this._x = 118.85;
this._y = -5.35;
}
}
}